<?php

namespace fastflow\driver\think;

use think\Db;
use fastflow\driver\interfaces\agencyTemplate;

class agency implements agencyTemplate
{
    public static function getAgency($param)
    {
        if (isset($param)) {
            $agency = Db::table('__FASTFLOW_AGENCY__')->where($param)->select();
            if (count($agency) == 0) {
                return false;
            }
            return $agency;
        }
        return false;
    }
}